package com.plm.mqshequ.service;

import com.plm.mqshequ.entity.User;

import java.util.List;

/**
 * @author Limi
 * @create 2019-01-09 23:35
 */
public interface UserService {

    void add(User user);

    void delete(String id);

    void updateById(User user);

    void updateTreasure(User user);

    List<User> query();

    User findById(String id);

    User findByUsername(String username);

    User findByPhone(String phone);

    User findByEmail(String email);

}
